﻿using HBase.db;
using hCommand;
using Persistence;
using System;
using System.Collections.Generic;
using System.Data;

namespace Api.transaction.engine.stock
{
    public class PkStockEngine : GkTransaction
    {
       public  long pkId;
        public string add;
        public string del;
        protected override TransRes Execute()
        { 
            string sql1 = "update core_stock  set pk_id=@pkId  where id in @id  ";

            exec(sql1, new { pkId, id = add.Split(",") });
            exec(sql1, new { pkId = 0, id = del.Split(",") });
            return new TransRes();
        }
        

    }
}
